Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications
Working with the multi-page transaction example
WebSpeed provides an HTML-generating Web object that allows you to start and terminate multi-page database transactions. This is
tran-tst.win the WebSpeed examples directory. This Web object allows the user to view and update theCustNumand name fields of the Customer table. There are buttons to change the object between State-Aware and State-Less. There are also buttons to set the Transaction-State to Start, Undo, Retry, and Commit.
![]()
To start and terminate multi-page database transactions:
- Run
tran-tst.win your favorite broker.- Press the State-Aware button.
- Press the Start button. This request sets up
web-disp.pto start the transactionFORTHE NEXTREQUEST. Any updates made in this request areOUTSIDETHETRANSACTION.- Press the Refresh button. This shows that the transaction state has changed to
“ACTIVE”.- Type
1in the CustNum field and typeNew Name for Skiingin the Name field.- Press the Update button.
- Type
2in CustNum andNew Name for Frisbeein Name.- Press the Update button.
- Continue similarly Steps 7 and 8 as long as you want.
- Press the Undo button. This tells
web-disp.pto undo the changes. However, the changes will not actually be undone until this request ends. The customer list at the bottom (which is created in the current request) still shows the changed names.- Press the Refresh button. Now the name changes are undone.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |